<article class="module width_full">
	<header><h3 class="tabs_involved"><?php echo __('Drugs Purchaseds'); ?></h3></header>
	<table class="tablesorter" cellspacing="0"> 
	<thead> 
	<tr>
			<th><?php echo $this->Paginator->sort('id'); ?></th>
			<th><?php echo $this->Paginator->sort('data_fabricacao'); ?></th>
			<th><?php echo $this->Paginator->sort('data_validade'); ?></th>
			<th><?php echo $this->Paginator->sort('lote'); ?></th>
			<th><?php echo $this->Paginator->sort('preco_compra'); ?></th>
			<th><?php echo $this->Paginator->sort('preco_venda'); ?></th>
			<th><?php echo $this->Paginator->sort('quantidade'); ?></th>
			<th><?php echo $this->Paginator->sort('user_id'); ?></th>
			<th><?php echo $this->Paginator->sort('drug_id'); ?></th>
			<!--<th><?php echo $this->Paginator->sort('modified'); ?></th>-->
			<th><?php echo $this->Paginator->sort('created'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	</thead> 
	<tbody> 
	<?php
	foreach ($drugsPurchaseds as $drugsPurchased): ?>
	<tr>
		<td><?php echo h($drugsPurchased['DrugsPurchased']['id']); ?>&nbsp;</td>
		<td><?php echo h($drugsPurchased['DrugsPurchased']['data_fabricacao']); ?>&nbsp;</td>
		<td><?php echo h($drugsPurchased['DrugsPurchased']['data_validade']); ?>&nbsp;</td>
		<td><?php echo h($drugsPurchased['DrugsPurchased']['lote']); ?>&nbsp;</td>
		<td><?php echo h($drugsPurchased['DrugsPurchased']['preco_compra']); ?>&nbsp;</td>
		<td><?php echo h($drugsPurchased['DrugsPurchased']['preco_venda']); ?>&nbsp;</td>
		<td><?php echo h($drugsPurchased['DrugsPurchased']['quantidade']); ?>&nbsp;</td>
		<td>
			<?php echo $this->Html->link($drugsPurchased['User']['name'], array('controller' => 'users', 'action' => 'view', $drugsPurchased['User']['id'])); ?>
		</td>
		<td>
			<?php echo $this->Html->link($drugsPurchased['Drug']['nome'], array('controller' => 'drugs', 'action' => 'view', $drugsPurchased['Drug']['id'])); ?>
		</td>
		<!--<td><?php echo h($drugsPurchased['DrugsPurchased']['modified']); ?>&nbsp;</td>-->
		<td><?php echo h($drugsPurchased['DrugsPurchased']['created']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo html_entity_decode($this->Html->link('<img src="'.$this->Html->url('/html5/images/icn_alert_info.png').'" />', array('action' => 'view', $drugsPurchased['DrugsPurchased']['id']))); ?>
			<?php echo html_entity_decode($this->Html->link('<img src="'.$this->Html->url('/html5/images/icn_edit.png').'" />', array('action' => 'edit', $drugsPurchased['DrugsPurchased']['id']))); ?>
			<?php echo html_entity_decode($this->Form->postLink('<img src="'.$this->Html->url('/html5/images/icn_trash.png').'" />', array('action' => 'delete', $drugsPurchased['DrugsPurchased']['id']), null, __('Are you sure you want to delete # %s?', $drugsPurchased['DrugsPurchased']['id']))); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</tbody> 
	</table>
	<div class="module_content">
		<p>
		<?php
		echo $this->Paginator->counter(array(
		'format' => __('Page {:page} of {:pages}, showing {:current} records out of {:count} total, starting on record {:start}, ending on {:end}')
		));
		?>		</p>

		<div class="paging">
		<?php
		echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
	?>
		</div>
	</div>
</article>
